<ul class="nav nav-pills nav-stacked custom-nav">
    <li class="menu-list" ng-repeat='menu in menus'>
        <a href="{{menu.subMenus && menu.subMenus.length ? 'javascript:;' : menu.url }}">
            <i class="{{menu.icon}}" ng-if='menu.icon'></i>
            <span>{{menu.name}}</span>
        </a>
      <ul class="sub-menu-list" ng-if='menu.subMenus && menu.subMenus.length'>
        <li ng-repeat='subMenu in menu.subMenus'>
          <a href="{{subMenu.url}}">{{subMenu.name}}</a>
        </li>
    </li>
</ul>